import request from '@/utils/request'

// 查询退款退货订单列表
export function listCompensate(query) {
  return request({
    url: '/oms/compensate/list',
    method: 'get',
    params: query
  })
}

// 查询退款退货订单详细
export function getCompensate(id) {
  return request({
    url: '/oms/compensate/' + id,
    method: 'get'
  })
}

// 新增退款退货订单
export function addCompensate(data) {
  return request({
    url: '/oms/compensate',
    method: 'post',
    data: data
  })
}

// 修改退款退货订单
export function updateCompensate(data) {
  return request({
    url: '/oms/compensate',
    method: 'put',
    data: data
  })
}

// 删除退款退货订单
export function delCompensate(id) {
  return request({
    url: '/oms/compensate/' + id,
    method: 'delete'
  })
}

// 导出退款退货订单
export function exportCompensate(query) {
  return request({
    url: '/oms/compensate/export',
    method: 'get',
    params: query
  })
}